def average(*nums):
    if not nums:
        return None
    return sum(nums) / len(nums)

print(average(1,2,3,4,5,6,7,8,9))
print(average())